import React, {useState} from 'react';
import {View, Text, Alert} from 'react-native';
import ModalSearch from './ModalSearch';
export default function SearchProduct() {
  const [showModal, setShowModal] = useState(false);
  return (
    <View>
      <Text
        onPress={() => {
          //   Alert.alert('搜索', '搜索结果就是这些内容');
          setShowModal(true);
        }}>
        搜索一下
      </Text>
      {showModal == true && (
        <ModalSearch
          isShow={showModal}
          changeIsShow={v => {
            setShowModal(v);
          }}
        />
      )}
    </View>
  );
}
